 @primary-color: #3a7afe;
  @light-blue: #ecf5ff;
  @text-color: #323233;

  .register-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 20px;
    background-color: #f5f7fa;
    box-sizing: border-box;

    .register-header {
      text-align: center;
      margin: 40px 0 30px;

      .register-title {
        font-size: 28px;
        color: @text-color;
        margin-bottom: 10px;
        font-weight: 600;
        background: #333;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;

        &.mobile-title {
          font-size: 24px;
        }
      }

      .register-subtitle {
        font-size: 16px;
        color: #646566;
      }
    }

    .register-form {
      flex: 1;
      max-width: 480px;
      width: 100%;
      margin: 0 auto;

      .password-toggle {
        color: #969799;
        cursor: pointer;
      }

      .terms-agreement {
        padding: 15px 16px;
        font-size: 14px;
        color: #646566;

        .terms-link {
          color: @primary-color;
          text-decoration: underline;
        }
      }

      .register-button {
        margin: 10px 16px 20px;

        @media (min-width: 768px) {
          margin: 20px 16px 30px;
        }
      }
    }

    .alternative-options {
      max-width: 480px;
      width: 100%;
      margin: 0 auto;
      padding: 0 16px;

      .divider {
        display: flex;
        align-items: center;
        margin: 25px 0;

        &::before,
        &::after {
          content: "";
          flex: 1;
          height: 1px;
          background-color: #ebedf0;
        }

        .divider-text {
          padding: 0 15px;
          font-size: 14px;
          color: #969799;
        }
      }

      .social-logins {
        display: flex;
        justify-content: center;
        gap: 20px;

        .van-button {
          width: 50px;
          height: 50px;
          font-size: 20px;
          color: @primary-color;
        }
      }
    }

    .login-link {
      text-align: center;
      margin: 30px 0 20px;
      font-size: 14px;
      color: #646566;

      .link {
        color: @primary-color;
        margin-left: 5px;
        cursor: pointer;
        font-weight: 500;
      }
    }
  }

  /* PC端样式 */
  @media (min-width: 768px) {
    .register-container {
      justify-content: center;
      padding: 40px;

      .register-header {
        margin: 0 0 30px;
      }

      .register-form {
        background-color: #fff;
        border-radius: 16px;
        padding: 30px 40px;
        box-shadow: 0 6px 20px rgba(58, 122, 254, 0.1);
      }

      .alternative-options {
        background-color: #fff;
        border-radius: 16px;
        padding: 20px 40px;
        box-shadow: 0 6px 20px rgba(58, 122, 254, 0.1);
      }
    }
  }

  /* 移动端样式调整 */
  @media (max-width: 767px) {
    .van-cell-group {
      margin: 0 !important;
    }

    .van-field {
      padding: 12px 16px;
    }

    .register-header {
      margin: 20px 0 !important;
    }
  }